import Flexbox from '@/components/Flexbox/Flexbox.vue';
import FlexboxItem from '@/components/Flexbox/FlexboxItem.vue';
import HSection from '@/components/HSection/HSection.vue';
import HIcon from '@/components/HIcon/index.vue';
import { createFromIconfontCN } from '@ant-design/icons-vue';
import defaultSettings from '@/config/defaultSettings';
// 自定义图标组件
const MyIcon = createFromIconfontCN({
    scriptUrl: defaultSettings.iconfontUrl
});
const components = {
    'Flexbox': Flexbox,
    'FlexboxItem': FlexboxItem,
    'HSection': HSection,
    'MyIcon': MyIcon,
    'HIcon': HIcon
};
export const registerGlobalComps = (app) => {
    Object.keys(components).forEach((key) => {
        app.component(key, components[key]);
    });
};